home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: SetConfig.bed 1.0 (14.01.96)
- **
- ** Load a configuration according to the filename extension
- **
- ** Written by Marco Negri
- */
-
- OPTIONS RESULTS
-
- GetFileInfo
- PARSE VAR RESULT . . '"'name'"'
-
- IF NAME ~= "" THEN DO
- dotpos = LASTPOS('.', name)
-
- IF dotpos = 0 THEN
- ext = ""
- ELSE
- ext = SUBSTR(name, dotpos+1)
- END
-
- SELECT
-
- /*
- ** You can insert here how many extensions you want:
- **
- ** For example:
- **
- ** WHEN (ext = 'asm') | (ext = 's') | (ext = 'a') THEN DO
- ** OpenPrefs "BED:Support/Assembler.prf"
- ** OpenDefinitions "BED:Support/Assembler.dfn"
- ** END
- **
- */
-
- WHEN (ext = 'c') | (ext = 'h') THEN DO
- OpenPrefs "BED:Support/SAS_C.prf"
- OpenDefinitions "BED:Support/SAS_C.dfn"
- END
- END
- END
-